import { defHttp } from '/@/utils/http/axios';
import {
  getRefundOrderListApiParams,
  approveRefundParams,
  rejectRefundParams,
} from '/@/api/sys/model/refund';

enum Api {
  GetRefundOrderList = '/chinaUnionPay/refund/list',
  Approve = '/chinaUnionPay/refund/approve',
  Reject = '/chinaUnionPay/refund/reject',
}

export const getRefundOrderList = (params: getRefundOrderListApiParams) => {
  return defHttp.post({ url: Api.GetRefundOrderList, params });
};
export const approveRefund = (params: approveRefundParams) => {
  return defHttp.post({ url: Api.Approve, params });
};
export const rejectRefund = (params: rejectRefundParams) => {
  return defHttp.post({ url: Api.Reject, params });
};
